import Vue from 'vue'
import store from '@/store'

Vue.directive('isShowSelfBtn', {
  inserted(el, { value }) {
    if (store.getters.userid === value) {
      el.style.display = 'none'
    } else {
      el.style.display = 'inline-block'
    }
  },
  update(el, { value }) {
    if (store.getters.userid === value) {
      el.style.display = 'none'
    } else {
      el.style.display = 'inline-block'
    }
  }
})
